package com.gk.panda.apis.service;

import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;

/**
 * @ClassName: FdfsService
 * @Description: fdfs文件
 * @author: Sir.yang
 * @date: 2022/11/6 10:09
 * @version: 1.0
 **/
public interface FdfsService {

    /**
     * @description: 文件上传
     * @param: []
     * @return: java.lang.String
     * @date: 2022/11/6 10:10
     * @version: 1.0
     **/
    String uploadFile(MultipartFile file, String fileExtName);

    /**
     * @description: 文件删除
     * @param: [filePath]
     * @return: void
     * @date: 2022/11/7 11:47
     * @version: 1.0
     **/
    void deleteFile(String filePath);

    /**
     * 从icc拉取图片视频资源上传文件服务器
     * @param path
     * @return
     */
    String updateFromIcc(String path);

    /**
     * 文件下载
     * @param path
     * @param response
     */
    void fileDownLoad(String path, HttpServletResponse response);
}
